package com.example.clxy.dao;

import com.example.clxy.entity.Semester;
import com.example.clxy.result.business.PageResult.SemesterPageResult;
import com.example.clxy.result.business.SemesterResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SemesterMapper {
     int deleteByPrimaryKey(String semesterid);

    int insert(Semester record);

    int insertSelective(Semester record);

    Semester selectByPrimaryKey(String semesterid);

    int updateByPrimaryKeySelective(Semester record);

    int updateByPrimaryKey(Semester record);

    List<SemesterPageResult> getSemesterList(@Param("semestername") String semestername,
                                             @Param("begin") int begin,
                                             @Param("end") int end,
                                             @Param("pagesize") int pagesize);

    int deleteSemester(String semesterid);

    SemesterResult getSemesterById(String semesterid);

    SemesterResult getSemesterByDate(String curDate);
}